package tedu.study.day05;

public class MultiTable {
    public static void main(String[] args) {
        int num = 6;
        for(int j=1;j<=9;j++){
            for(int i=1;i<=j;i++){
                System.out.print(i+"*"+j+"="+i*j+"\t");
            }
            System.out.println();//换行
        }

        for(int i=1;i<=9;i++){
            for(int j=1;j<i;j++){
                System.out.print("00000\t");
            }
            for(int j=i;j<=9;j++){
                System.out.print(i+"*"+j+"="+i*j+"\t");
            }
            System.out.println();//换行
        }
        System.out.println("\t*");
        System.out.println("1\t*");
        System.out.println("12\t*");
        System.out.println("123\t*");
        System.out.println("1234\t*");
        System.out.println("12345\t*");
        System.out.println("123456\t*");
        System.out.println("1234567\t*");

    }
}
